<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSkinRecordsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('skin_records', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('store_id')->comment('店铺ID');
			$table->integer('wechat_user_id')->comment('用户ID');
			$table->boolean('skin_detector_id')->default(1)->comment('肤质检测记录类型ID （1：摄像头拍摄检测。2：唯丝普接触图像检测仪。 3：汇美接触式检测仪）');
			$table->integer('device_account_id')->unsigned()->default(0)->comment('设备ID');
			$table->integer('store_admin_id')->default(0)->comment('店员id');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('skin_records');
	}

}
